#include "SkillSummon.h"
#include "Character/SkillPart.h"
#include "base/core/log.h"
#include "base/core/com_define.h"
SkillSummon::SkillSummon()
{

}
SkillSummon::~SkillSummon()
{

}

void SkillSummon::OnDamageTimedoPlayer(uint32_t skillId, cList & vtargetList)
{
	OnDamageTimedo(skillId);
}

void SkillSummon::OnDamageTimedo(uint32_t skillId)
{
	stSkillInfo* pSkill = m_pPart->GetSkillInfo(skillId);
	MMOLOG_PROCESS_ERROR(pSkill != nullptr);
	m_pPart->KillTimedo(m_nGlobelID);
	//发送招换物状态包，移除技能
	m_pPart->SkillNoTageteResult(skillId, pSkill->_pSkillmeta, m_curDamageCount, m_focoTime);

	m_pPart->RemoveSkillFightInfo(m_nGlobelID);
	return;
Exit0:
	//m_pPart->KillTimedo(m_nGlobelID);
	m_pPart->RemoveSkillFightInfo(m_nGlobelID);
	return;
}